package com.jiankangjin.transsystem.search;

import java.util.List;

/**
 * 交易查询第二步 返回的结果 装入此类对象
 */
public class GetOrderResult {
	/** 订单的 ID */
	private String order_id;
	/** 订单的 支付状态 */
	private String order_status;
	/** 订单的 总金额 */
	private String order_fee;
	/** 订单的 币种 */
	private String order_currency;
	/** 订单的 支付状态 */
	private String order_pay_status;
	/** 订单的 购买者手机号 */
	private String buyer_cellphone;
	/** 订单的 购买者姓名 */
	private String buyer_name;
	/** 订单 全部支付成功的交易 */
	/** 订单生成的时间 */
	private String order_time;
	/** 订单的 操作者编号 */
	private String operator_id;
	/** 订单的 操作者姓名 */
	private String operator_name;
	/** 订单支付完成日期 */
	private String ord_fin_time;
	/** 订单已支付金额 */
	private String pay_amt;
	/** 订单已退款金额 */
	private String refund_amt;
	/** 订单注释*/
	private String comment;
	
    //--------------订单总额-折扣金额=订单金额(订单表中的ordAmt)
    /** 订单总额  */
    private String order_total_fee;
    /** 折扣金额  */
    private String discount_fee;
    /** 折扣原因  */
    private String discount_comment;
    
	/** 订单的补全状态 */
	private boolean is_tip;
	/** 订单中的商品 */
	private List<Goods> detail;
	/** 订单中的推荐渠道信息 */
	private List<Channel> channel;

	public GetOrderResult() {

	}

	/**
	 * @param order_id
	 * @param order_status
	 * @param order_fee
	 * @param order_currency
	 * @param order_pay_status
	 * @param buyer_cellphone
	 * @param buyer_name
	 * @param order_time
	 * @param operator_id
	 * @param operator_name
	 * @param ord_fin_time
	 * @param pay_amt
	 * @param refund_amt
	 * @param comment
	 * @param is_tip
	 * @param detail
	 * @param channel
	 */
	public GetOrderResult(String order_id, String order_status,
			String order_fee, String order_currency, String order_pay_status,
			String buyer_cellphone, String buyer_name, String order_time,
			String operator_id, String operator_name, String ord_fin_time,
			String pay_amt, String refund_amt, String comment, boolean is_tip,
			List<Goods> detail, List<Channel> channel) {
		super();
		this.order_id = order_id;
		this.order_status = order_status;
		this.order_fee = order_fee;
		this.order_currency = order_currency;
		this.order_pay_status = order_pay_status;
		this.buyer_cellphone = buyer_cellphone;
		this.buyer_name = buyer_name;
		this.order_time = order_time;
		this.operator_id = operator_id;
		this.operator_name = operator_name;
		this.ord_fin_time = ord_fin_time;
		this.pay_amt = pay_amt;
		this.refund_amt = refund_amt;
		this.comment = comment;
		this.is_tip = is_tip;
		this.detail = detail;
		this.channel = channel;
	}

	/**  */
	public String getOrder_id() {
		return order_id;
	}

	/**  */
	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}

	/**  */
	public String getOrder_status() {
		return order_status;
	}

	/**  */
	public void setOrder_status(String order_status) {
		this.order_status = order_status;
	}

	/**  */
	public String getOrder_fee() {
		return order_fee;
	}

	/**  */
	public void setOrder_fee(String order_fee) {
		this.order_fee = order_fee;
	}

	/**  */
	public String getOrder_currency() {
		return order_currency;
	}

	/**  */
	public void setOrder_currency(String order_currency) {
		this.order_currency = order_currency;
	}

	/**  */
	public String getOrder_pay_status() {
		return order_pay_status;
	}

	/**  */
	public void setOrder_pay_status(String order_pay_status) {
		this.order_pay_status = order_pay_status;
	}

	/**  */
	public String getBuyer_cellphone() {
		return buyer_cellphone;
	}

	/**  */
	public void setBuyer_cellphone(String buyer_cellphone) {
		this.buyer_cellphone = buyer_cellphone;
	}

	/**  */
	public String getOrder_total_fee() {
		return order_total_fee;
	}

	/**  */
	public void setOrder_total_fee(String order_total_fee) {
		this.order_total_fee = order_total_fee;
	}

	/**  */
	public String getDiscount_fee() {
		return discount_fee;
	}

	/**  */
	public void setDiscount_fee(String discount_fee) {
		this.discount_fee = discount_fee;
	}

	/**  */
	public String getDiscount_comment() {
		return discount_comment;
	}

	/**  */
	public void setDiscount_comment(String discount_comment) {
		this.discount_comment = discount_comment;
	}

	/**  */
	public String getBuyer_name() {
		return buyer_name;
	}

	/**  */
	public void setBuyer_name(String buyer_name) {
		this.buyer_name = buyer_name;
	}

	/**  */
	public String getOrder_time() {
		return order_time;
	}

	/**  */
	public void setOrder_time(String order_time) {
		this.order_time = order_time;
	}

	/**  */
	public String getOperator_id() {
		return operator_id;
	}

	/**  */
	public void setOperator_id(String operator_id) {
		this.operator_id = operator_id;
	}

	/**  */
	public String getOperator_name() {
		return operator_name;
	}

	/**  */
	public void setOperator_name(String operator_name) {
		this.operator_name = operator_name;
	}

	/**  */
	public String getOrd_fin_time() {
		return ord_fin_time;
	}

	/**  */
	public void setOrd_fin_time(String ord_fin_time) {
		this.ord_fin_time = ord_fin_time;
	}

	/**  */
	public String getPay_amt() {
		return pay_amt;
	}

	/**  */
	public void setPay_amt(String pay_amt) {
		this.pay_amt = pay_amt;
	}

	/**  */
	public String getRefund_amt() {
		return refund_amt;
	}

	/**  */
	public void setRefund_amt(String refund_amt) {
		this.refund_amt = refund_amt;
	}

	/**  */
	public String getComment() {
		return comment;
	}

	/**  */
	public void setComment(String comment) {
		this.comment = comment;
	}

	/**  */
	public boolean isIs_tip() {
		return is_tip;
	}

	/**  */
	public void setIs_tip(boolean is_tip) {
		this.is_tip = is_tip;
	}

	/**  */
	public List<Goods> getDetail() {
		return detail;
	}

	/**  */
	public void setDetail(List<Goods> detail) {
		this.detail = detail;
	}

	/**  */
	public List<Channel> getChannel() {
		return channel;
	}

	/**  */
	public void setChannel(List<Channel> channel) {
		this.channel = channel;
	}

	/*
	 * 订单中的所有商品
	 */
	public class Goods {
		/** 商品的类型 1诊断费 2医药费 3别的分类 */
		private String type;
		/** 商品ID */
		private String id;
		/** 商品名称 */
		private String goods_name;
		/** 商品数量 */
		private String goods_quantity;
		/** 商品单价 */
		private String goods_price;
		/** 商品规格 */
		private String std;
		/** 商品展示地址 */
		private String goods_url;

		public Goods() {

		}

		/**
		 * @param type
		 * @param id
		 * @param goods_name
		 * @param goods_quantity
		 * @param goods_price
		 * @param std
		 * @param goods_url
		 */
		public Goods(String type, String id, String goods_name,
				String goods_quantity, String goods_price, String std,
				String goods_url) {
			super();
			this.type = type;
			this.id = id;
			this.goods_name = goods_name;
			this.goods_quantity = goods_quantity;
			this.goods_price = goods_price;
			this.std = std;
			this.goods_url = goods_url;
		}

		/**  */
		public String getType() {
			return type;
		}

		/**  */
		public void setType(String type) {
			this.type = type;
		}

		/**  */
		public String getId() {
			return id;
		}

		/**  */
		public void setId(String id) {
			this.id = id;
		}

		/**  */
		public String getGoods_name() {
			return goods_name;
		}

		/**  */
		public void setGoods_name(String goods_name) {
			this.goods_name = goods_name;
		}

		/**  */
		public String getGoods_quantity() {
			return goods_quantity;
		}

		/**  */
		public void setGoods_quantity(String goods_quantity) {
			this.goods_quantity = goods_quantity;
		}

		/**  */
		public String getGoods_price() {
			return goods_price;
		}

		/**  */
		public void setGoods_price(String goods_price) {
			this.goods_price = goods_price;
		}

		/**  */
		public String getStd() {
			return std;
		}

		/**  */
		public void setStd(String std) {
			this.std = std;
		}

		/**  */
		public String getGoods_url() {
			return goods_url;
		}

		/**  */
		public void setGoods_url(String goods_url) {
			this.goods_url = goods_url;
		}

	}// end Goods class

	/*
	 * 订单中的推荐渠道信息
	 */
	public class Channel {
		/** 本次支付的ID */
		private String sub_deal_ssn;
		/** 当前支付交易状态 */
		private String sub_deal_stauts;
		/** 渠道编号 */
		private String channel_id;
		/** 渠道名称 */
		private String channel_name;
		/** 渠道类型 */
		private String channel_type;
		/** 支付金额 */
		private String channel_fee;
		/** 金额币种 */
		private String channel_currency;
		/** 支付渠道类型 */
		private String channel_fee_type;
		/** 本次支付的人 */
		private String pay_user;
		/** 本次支付的退款状态 */
		private String refund_status;
		/** 本次支付的累计退款金额 */
		private String refund_amt;

		public Channel() {

		}

		/**
		 * @param sub_deal_ssn
		 * @param sub_deal_stauts
		 * @param channel_id
		 * @param channel_name
		 * @param channel_type
		 * @param channel_fee
		 * @param channel_currency
		 * @param channel_fee_type
		 * @param pay_user
		 * @param refund_status
		 * @param refund_amt
		 */
		public Channel(String sub_deal_ssn, String sub_deal_stauts,
				String channel_id, String channel_name, String channel_type,
				String channel_fee, String channel_currency,
				String channel_fee_type, String pay_user, String refund_status,
				String refund_amt) {
			super();
			this.sub_deal_ssn = sub_deal_ssn;
			this.sub_deal_stauts = sub_deal_stauts;
			this.channel_id = channel_id;
			this.channel_name = channel_name;
			this.channel_type = channel_type;
			this.channel_fee = channel_fee;
			this.channel_currency = channel_currency;
			this.channel_fee_type = channel_fee_type;
			this.pay_user = pay_user;
			this.refund_status = refund_status;
			this.refund_amt = refund_amt;
		}

		/**  */
		public String getSub_deal_ssn() {
			return sub_deal_ssn;
		}

		/**  */
		public void setSub_deal_ssn(String sub_deal_ssn) {
			this.sub_deal_ssn = sub_deal_ssn;
		}

		/**  */
		public String getSub_deal_stauts() {
			return sub_deal_stauts;
		}

		/**  */
		public void setSub_deal_stauts(String sub_deal_stauts) {
			this.sub_deal_stauts = sub_deal_stauts;
		}

		/**  */
		public String getChannel_id() {
			return channel_id;
		}

		/**  */
		public void setChannel_id(String channel_id) {
			this.channel_id = channel_id;
		}

		/**  */
		public String getChannel_name() {
			return channel_name;
		}

		/**  */
		public void setChannel_name(String channel_name) {
			this.channel_name = channel_name;
		}

		/**  */
		public String getChannel_type() {
			return channel_type;
		}

		/**  */
		public void setChannel_type(String channel_type) {
			this.channel_type = channel_type;
		}

		/**  */
		public String getChannel_fee() {
			return channel_fee;
		}

		/**  */
		public void setChannel_fee(String channel_fee) {
			this.channel_fee = channel_fee;
		}

		/**  */
		public String getChannel_currency() {
			return channel_currency;
		}

		/**  */
		public void setChannel_currency(String channel_currency) {
			this.channel_currency = channel_currency;
		}

		/**  */
		public String getChannel_fee_type() {
			return channel_fee_type;
		}

		/**  */
		public void setChannel_fee_type(String channel_fee_type) {
			this.channel_fee_type = channel_fee_type;
		}

		/**  */
		public String getPay_user() {
			return pay_user;
		}

		/**  */
		public void setPay_user(String pay_user) {
			this.pay_user = pay_user;
		}

		/**  */
		public String getRefund_status() {
			return refund_status;
		}

		/**  */
		public void setRefund_status(String refund_status) {
			this.refund_status = refund_status;
		}

		/**  */
		public String getRefund_amt() {
			return refund_amt;
		}

		/**  */
		public void setRefund_amt(String refund_amt) {
			this.refund_amt = refund_amt;
		}
	}
}
